<script setup>
import SearchView from '/components/SearchView/index.vue';

const emits = defineEmits(['query', 'reset']);

const list = [
  {
    label: '名称',
    name: 'name',
    value: '',
    type: 'input',
    placeholder: '请输入名称',
  },
];

const queryBtn = (forms) => {
  emits('query', forms);
};

const resetBtn = (forms) => {
  emits('reset', forms);
};
</script>
<template>
  <SearchView :searchlist="list" @query="queryBtn" @reset="resetBtn" />
</template>
